import jqdatasdk as jq
import matplotlib.pyplot as plt
import pandas as pd
import base64
jq.auth('13912967392', 'Zcxvbmn1')
price_stock_1 = jq.get_price(jq.normalize_code('000066'), start_date='2021-01-01', end_date='2022-01-21', frequency='daily')
price_300 = jq.get_price(jq.normalize_code('399300'), start_date='2021-01-01', end_date='2022-01-21', frequency='daily')
plt.plot(price_stock_1.index, price_stock_1['close'])
plt.plot(price_300.index, price_300['close']/(price_300.loc['2021-01-04']['close']/price_stock_1.loc['2021-01-04']['close']))
plt.show()